package br.com.gestacard.sync.controle.jsf.Contato;

import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;

import com.powerlogic.jcompany.comuns.PlcException;
import com.powerlogic.jcompany.config.comuns.PlcConstantes;

import br.com.gestacard.sync.controle.jsf.AppAction;

/**
 * Classe de Controle gerada pelo assistente
 */
public class ContatoAction extends AppAction  {

	private static final long serialVersionUID = 1L;
	
	@Override
	protected void trataBotoesConformeLogicaApos() throws PlcException {
		HttpServletRequest request = (HttpServletRequest) FacesContext
				.getCurrentInstance().getExternalContext().getRequest();

		request.setAttribute(PlcConstantes.ACAO.EXIBE_BT_INCLUIR, "N");
		request.setAttribute(PlcConstantes.ACAO.EXIBE_BT_EXCLUIR, "N");
		request.setAttribute(PlcConstantes.ACAO.EXIBE_BT_GRAVAR, "N");		
		
		super.trataBotoesConformeLogicaApos();
	}
	
}
